package cn.easyutil.util.javaUtil.http;

/**
 * http工厂创建
 */
public class HttpUtilFactory {

    public static HttpOperation create(HttpImplEnum httpImplEnum){
        switch (httpImplEnum){
            case jdk:
                return new JdkHttpOperation();
            case httpClient:
                return new HttpClientOperation();
        }
        return new HttpClientOperation();
    }
}
